Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): ensure container image is built before e2e tests #17408

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

jacobwgillespie
Copy link
Contributor

Problem

It's possible for the "fetch container from Depot" step in the e2e tests to not find a cached container - this is because currently it is relying on the container-images-ci.yml workflow to build the container, but it's effectively a race condition which one starts first.

This results in longer builds, since each of the 11 workflows starts its own build, and this consumes unnecessary Depot build minutes.

Changes

To mitigate this, this PR adds a container build job to the ci-e2e.yml workflow, as a dependency of the cypress matrix job. This ensures that the container will be fully built and present in the cache before it's pulled to each of the 11 matrix jobs with load: true

How did you test this code?

This hasn't been tested, given it runs in Actions.

Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 🙌

I'm assuming the CDP build is because this is on a fork and we can ignore that for this PR

@pauldambra pauldambra merged commit aace87d into PostHog:master Sep 13, 2023
56 of 57 checks passed
@jacobwgillespie jacobwgillespie deleted the fix-depot-cached-load branch September 13, 2023 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants